<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/popUP.js" %>"></script>

 
<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
   
  <tr align="left"> 
   <td height="25" colspan="12" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>NUEVO TIPO DE VALOR FLEXIBLE</STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
 <html:form  action="/admin/createFlexValueType.do"  method="post" styleId="frmFlexValueType">
 
 <input type="hidden" name="flexValueTypeInternalCode" />
 
  <tr align="left">
   <td height="25" colspan="12" class="titulosenblanco">   
		<table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
     <tr>
    	<td width="28%">&nbsp;</td>
			<td width="23%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="46%"> 
              <html:text size= "40" styleClass="form"  property="flexValueTypeName"/>
           </td>
			<td width="3%">&nbsp;</td>
     </tr>
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Aplicacion</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%">
        <html:select styleClass="form" styleId="frmFlexValueType" property="applicationContextInternalCode" style="width:215" > 
            <html:options collection="applicationsList" labelProperty="name" property="code" />
         </html:select>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>
	 <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Maneja Codigos</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%">
        <html:select styleClass="form" property="flexValueTypeAutomaticCustomCode" style="width:215" styleId="frmFlexValueType"> 
          <html:option value = "">Seleccionar Valor</html:option>
          <html:option value="S">Si</html:option>
          <html:option value="N">No</html:option>
         </html:select>
       </td>
		  <td width="3%">&nbsp;</td>
     </tr>

	<!--<tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Vigencia</strong> (*)&nbsp;&nbsp; 
          </td>
		  <td width="46%">
        <html:select styleClass="form" property="flexValueTypeUse" style="width:215" styleId="frmFlexValueType"> 
          <html:option value = "">Seleccionar Valor</html:option>
          <html:option value="S">Si</html:option>
          <html:option value="N">No</html:option>
         </html:select>
		  </td>
		  <td width="3%">&nbsp;</td>
  </tr>
  <tr> 
    <td width="7%">&nbsp;</td>
    <td width="22%" align="left" class="celdatabla"><strong>Desde Vigencia</strong> 
      </td>
    <td width="61%">
      <input type="text" size= "40" class="form"  name="flexValueTypeEffectiveFrom" readonly="readonly" />
        <a href="javascript:effectiveFrom.popup();">
        <img src="<%= request.getContextPath() + "/images/cal.gif" %>" 
        width="16" height="16" border="0" alt="Click para seleccionar la fecha"></a>
      
    </td>
    <td width="10%">&nbsp;</td>
  </tr>

  <tr> 
    <td width="7%">&nbsp;</td>
    <td width="22%" align="left" class="celdatabla"><strong>Hasta Vigencia</strong> 
      </td>
    <td width="61%">
      <input type="text" size= "40" class="form"  name="flexValueTypeEffectiveUntil" readonly="readonly" />
        <a href="javascript:effectiveUntil.popup();">
        <img src="<%= request.getContextPath() + "/images/cal.gif" %>" 
        width="16" height="16" border="0" alt="Click para seleccionar la fecha"></a>
      
    </td>
    <td width="10%">&nbsp;</td>
  </tr>-->
  <tr>
  <td width="28%">&nbsp;</td>
  <td class="celdatabla" width="23%"><strong>Descripcion</strong> &nbsp;&nbsp; 
  </td>
  <td width="46%"> 
   <textarea  name="flexValueTypeDescription" style="frmFlexValueType" cols="35" rows="5" class="form"></textarea>
  </td>
  <td width="3%">&nbsp;</td>
  </tr>


		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="3%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
</table>
<!--CALENDARIO  
<script language="JavaScript">
  var effectiveFrom = new calendar1(document.forms['frmFlexValueType'].elements['flexValueTypeEffectiveFrom'],"-");
  var effectiveUntil = new calendar1(document.forms['frmFlexValueType'].elements['flexValueTypeEffectiveUntil'],"-");
</script> -->

<p align="center">
  <html:link page="/admin/findFlexValueType.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>

